# Contributor: Jeremy O'Brien <neutral@fastmail.com>
# Maintainer: Jeremy O'Brien <neutral@fastmail.com>
pkgname=links-graphics
pkgver=2.20.1
pkgrel=1
pkgdesc="Web browser running in both graphics and text mode"
builddir="$srcdir"/links-$pkgver
url="http://atrey.karlin.mff.cuni.cz/~clock/twibright/links"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="bzip2-dev openssl-dev zlib-dev libevent-dev zstd-dev xorg-server-dev jpeg-dev libpng-dev"
provides="links"
source="http://links.twibright.com/download/links-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-javascript \
		--enable-graphics \
		--with-x \
		--x-includes=/usr/include/X11/ \
		--x-libraries=/usr/lib/xorg/ \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="c7258e303a2012e9016385abd1e8882ffec47dd3baf479a54448742e41b03508d874387af6ea97c7ef9c4d37f2eecbe7bc0121d923df79b0f455f4f466747ca2  links-2.20.1.tar.bz2"
